package com.example.demo.domain;

import java.io.Serializable;

public class Page implements Serializable {
    private Integer cur;
    private Integer pre;
    private Integer next;

    public Page(){
        this.cur=1;
        this.pre=0;
        this.next=2;
    }

    public Page(Integer cur,Integer pre,Integer next){
        this.cur=cur;
        this.pre=pre;
        this.next=next;
    }

    public Integer getCur() {
        return cur;
    }

    public void setCur(Integer cur) {
        this.cur = cur;
    }

    public Integer getPre() {
        return pre;
    }

    public void setPre(Integer pre) {
        this.pre = pre;
    }

    public Integer getNext() {
        return next;
    }

    public void setNext(Integer next) {
        this.next = next;
    }

    @Override
    public String toString() {
        return "Page{" +
                "cur=" + cur +
                ", pre=" + pre +
                ", next=" + next +
                '}';
    }
}
